package cn.village.controller;

import cn.village.entity.LabourContract;
import cn.village.service.LabourContractService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * (LabourContract)表控制层
 *
 * @author makejava
 * @since 2021-02-10 15:34:01
 */
@RestController
@RequestMapping("labourContract")
public class LabourContractController {
    /**
     * 服务对象
     */
    @Resource
    private LabourContractService labourContractService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public LabourContract selectOne(Integer id) {
        return this.labourContractService.queryById(id);
    }

}